import {httpInstance} from "@/utils/http.js";
import {ref} from "vue";

// 判断所有的密钥是否合法
export function publicKeysValidate(keys) {
    if (keys.value == null) {
        keys = ref([])
    }
    return httpInstance({
        url: "/keys/validate",
        method: "post",
        data: {
            keys: keys.value
        }
    })
}

// 获取值班表
export function publicGetRota(key) {
    return httpInstance({
        url: "/get/rota",
        method: "get",
        headers: {
            key: key
        }
    })
}